<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/8/20
 * Time: 14:23
 */
class 去除html标签代码
{

}

function Text2Html($txt){
    $txt = str_replace("  ","　",$txt);
    $txt = str_replace("<","&lt;",$txt);
    $txt = str_replace(">","&gt;",$txt);
    $txt = preg_replace("/[rn]{1,}/isU"," 
rn",$txt);
    return $txt;
}